
package org.wing.mouseListener;

import org.come.Frame.TestpackJframe;
import org.come.Frame.ZhuFrame;
import org.come.entity.Goodstable;
import org.come.until.GoodsListFromServerUntil;
import org.wing.panel.LHMainPanel;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class LHChooseWingGoodsMouseListener extends MouseAdapter
{

	private LHMainPanel LHMainPanel;

	public LHChooseWingGoodsMouseListener(LHMainPanel LHMainPanel)
	{
		this.LHMainPanel = LHMainPanel;
	}

	public void mouseEntered(MouseEvent e)
	{
		if (LHMainPanel.getWingGoods() == null)
			return;
		Goodstable goodstable = GoodsListFromServerUntil.getRgid(LHMainPanel.getWingGoods());
		if (goodstable == null)
			return;
		if (goodstable != null)
			ZhuFrame.getZhuJpanel().creatgoodtext(goodstable);
	}

	public void mouseExited(MouseEvent e)
	{
		TestpackJframe.getTestpackJframe().getJpac().ClearText();
		ZhuFrame.getZhuJpanel().cleargoodtext();
	}
}
